﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Word = Microsoft.Office.Interop.Word;

namespace TemplateAddIn
{
    public class ICreateContentControlFactory
    {
        public static ICreateContentControl CreateICCC(Variable pVar)
        {
            switch (pVar.VariableType)
            {
                case Word.WdContentControlType.wdContentControlText:
                    return new TextCCCreator();

                case Word.WdContentControlType.wdContentControlPicture:
                    return new ImageCCCreator();
            }

            throw new NotImplementedException();
        }
    }
}
